package me.zhangsanfeng.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import me.zhangsanfeng.base.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品信息 服务类
 * </p>
 *
 * @author ZhangYao
 * @since 2018-10-18
 */
public interface ProductService extends IService<Product> {
    Product insertProduct(Product product);

    int insertBatchProduct(List<Product> products);

    boolean deleteProduct(Product product);

    int deleteBatchProduct(List<Product> products);

    boolean update(Product product);

    int updateBatchProduct(List<Product> products);

    Product selectProduct(Product product);

    List<Product> selectListProduct(Product product);

    IPage<Product> selectPageProduct(Product product);

}
